// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 此处后端没有提供注释 GET /feign/supplier/detail */
export async function getSupplierDetail(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSupplierDetailParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseSupplierDetailVo>(
    `/barter-user/feign/supplier/detail`,
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 此处后端没有提供注释 POST /feign/supplier/list */
export async function getSupplierListByIds(
  body: number[],
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListSupplierDetailVo>(
    `/barter-user/feign/supplier/list`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
